package com.yuba.front.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.yuba.common.translation.annotation.Translation;
import com.yuba.common.translation.constant.TransConstant;
import com.yuba.front.domain.FishSiteComments;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 钓场评论视图对象 fish_site_comments
 *
 * @author modakai
 * @date 2024-12-11
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = FishSiteComments.class)
public class FishSiteCommentsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long commentsId;

    /**
     * 关联钓场id
     */
    @ExcelProperty(value = "关联钓场id")
    private Long fishSiteId;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * 评论内容
     */
    @ExcelProperty(value = "评论内容")
    private String comment;

    /**
     * 评分
     */
    @ExcelProperty(value = "评分")
    private Long rating;


    private String username;

    @Translation(type = TransConstant.OSS_ID_TO_URL)
    private Long avatar;

    private Date createTime;

}
